<?php $this->renderPartial('_appearance_tabs'); ?>
<div class="grid_16">
    <div class="admin-agency form">
		<?php
		$form = $this->beginWidget('CActiveForm', array(
			'id' => 'admin-agency-mls-form',
			'enableAjaxValidation' => false,
			'htmlOptions' => array()
		));
		?>
        <div class="section">
			<div class="block">
				<h2>Rename Menu Items</h2>
				<h3>Salesperson Portal</h3>
				<?php
				$this->widget('PsGridView', array(
					'dataProvider' => $topachieverMenuDataProvider,
					'template' => '{items}',
					'columns' => array(
						'id' => array(
							'header' => 'Original',
							'value' => '$data["name"]',
							'headerHtmlOptions' => array(
								'width' => 200,
							),
							'htmlOptions' => array(
							)
						),
						'value' => array(
							'header' => 'New Name',
							'type' => 'raw',
							'value' => 'CHtml::textField("AgencySetting[Menu][TopAchiever][" . $data["id"] . "]", $data["value"], array("size" => 20, "placeholder" => "Default"))'
						),
					)
				));
				?>
				<h3>Agency Portal</h3>
				<?php
				$this->widget('PsGridView', array(
					'dataProvider' => $prestigeMenuDataProvider,
					'template' => '{items}',
					'columns' => array(
						'id' => array(
							'header' => 'Original',
							'value' => '$data["name"]',
							'headerHtmlOptions' => array(
								'width' => 200,
							),
							'htmlOptions' => array(
							)
						),
						'value' => array(
							'header' => 'New Name',
							'type' => 'raw',
							'value' => 'CHtml::textField("AgencySetting[Menu][Prestige][" . $data["id"] . "]", $data["value"], array("size" => 20, "placeholder" => "Default"))'
						),
					)
				));
				?>
				<button type="submit" class="link-button round_all no-margin green">
					<span>Save Changes</span>
				</button>
			</div>
		</div>
        <div class="section">
			<div class="block">
				<h2>Rename Labels</h2>
				<table class="form-table">
					<tr>
						<th scope="row" width="100" class="align-right">
							<label>Projects</label>
						</th>
						<td>
							<?php
							echo CHtml::dropDownList("AgencySetting[Label][Project]", $agencySettings['Label']['Project'], array(
								'Project' => 'Projects (Default)',
								'Building' => 'Buildings',
							));
							?>
						</td>
					</tr>
				</table>
				<button type="submit" class="link-button round_all no-margin green">
					<span>Save Changes</span>
				</button>
			</div>
        </div>
		<?php $this->endWidget(); ?>
    </div>
</div>